package com.itheima.test;

//父类
class ParentClass {
 int parentVariable;

 void parentMethod() {
     System.out.println("This is a method in the ParentClass.");
 }
}

//子类
class ChildClass extends ParentClass {
 int childVariable;

 void childMethod() {
     System.out.println("This is a method in the ChildClass.");
 }
 
 @Override
 void parentMethod() {
	 System.out.println("This is a method override  the ParentClass method");
 }

}